<div class="row-fluid">
    <div class="navbar no-margin">
        <div class="navbar-inner">
            <ul class="breadcrumb">
                <i class="icon-chevron-left hide-sidebar"><a href='#' title="Hide Sidebar" rel='tooltip'>&nbsp;</a></i>
                <i class="icon-chevron-right show-sidebar" style="display:none;"><a href='#' title="Show Sidebar"
                        rel='tooltip'>&nbsp;</a></i>
                <li>
                    <a href="#/admin">首页</a>
                </li>
                <li>
                    <a href="#/star/metric/rt_metric_sync_config_list">实时指标同步配置列表</a>
                </li>
                <li class="active">实时指标同步配置</li>
            </ul>
        </div>
    </div>
</div>

<div class="container-fluid">

    <div class="row">
        <div class="col-sm-12 col-md-12 main">
            <div class="col-md-6 col-md-offset-3">
                <!--                <form name="form" ng-keydown="if(event.keyCode==13) return false;" ng-submit="form.$valid&&olapConfigAdd()" novalidate>-->
                <form name="form" novalidate>
                    <div class="form-group"
                        ng-class="{'has-error':form.keyExpress.$error.required,'has-success':!form.keyExpress.$error.required}">
                        <label style="padding: 0 0 5px">wtable键表达式</label>
                        <!--                        <input type="text" class="form-control" name="resolvegroupId" ng-model="vm.p.resolvegroupId"/>-->
                        <input type="text" class="form-control" name="keyExpress" ng-model="vm.p.keyExpress" required />
                        <span ng-show="form.keyExpress.$error.required" class="help-block">wtable键表达式</span>
                    </div>
                    <div class="form-group"
                        ng-class="{'has-error':form.interval.$error.required,'has-success':!form.interval.$error.required}">
                        <label style="padding: 0 0 5px">计算周期（分钟）</label>
                        <!--                        <input type="text" class="form-control" name="resolvegroupId" ng-model="vm.p.resolvegroupId"/>-->
                        <input type="text" class="form-control" name="interval" ng-model="vm.p.interval" required />
                        <span ng-show="form.interval.$error.required" class="help-block">请填写计算周期</span>
                    </div>
                    <!--                    <div class="form-group" ng-class="{'has-error':form.ctiId.$error.required,'has-success':!form.ctiId.$error.required}">-->
                    <!--                        <label style="padding: 0 0 5px">支持项</label>-->
                    <!--                        &lt;!&ndash;                        <input type="text" class="form-control" name="ctiId" ng-model="vm.p.ctiId"/>&ndash;&gt;-->
                    <!--                        <select ng-disabled="vm.isDisabled" required name="ctiId" ng-model="vm.p.ctiId" ng-options="x as y.ctiName for (x,y) in ctis" class="form-control"></select>-->
                    <!--                        <span ng-show="form.ctiId.$error.required" class="help-block">请选择支持项</span>-->
                    <!--                    </div>-->
                    <div class="form-group"
                        ng-class="{'has-error':form.colKey.$error.required,'has-success':!form.colKey.$error.required}">
                        <label style="padding: 0 0 5px">col_key</label>
                        <!--                        <input type="text" class="form-control" name="ctiId" ng-model="vm.p.ctiId"/>-->
                        <input type="text" class="form-control" name="colKey" ng-model="vm.p.colKey" required />
                        <span ng-show="form.colKey.$error.required" class="help-block">请填写col_key</span>
                    </div>
                    <div class="form-group"
                        ng-class="{'has-error':form.tableId.$error.required,'has-success':!form.tableId.$error.required}">
                        <label style="padding: 0 0 5px">table_id</label>
                        <!--                        <input type="text" class="form-control" name="resolvegroupId" ng-model="vm.p.resolvegroupId"/>-->
                        <input type="text" class="form-control" name="tableId" ng-model="vm.p.tableId" required />
                        <span ng-show="form.tableId.$error.required" class="help-block">请填写table_id</span>
                    </div>

                    <div class="form-group">
                        <input class="btn btn-primary" ng-class="{'disabled':!form.$valid}" type="button" value="确定"
                            ng-click="form.$valid&&rtMetricSyncConfigSave()" />
                        <a href="#/star/metric/rt_metric_sync_config_list" class="btn btn-default">返回</a>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>
<!--/.container-->
<script type="text/javascript" charset="UTF-8" src="../lib/bootstrap/js/bootstrap-tagsinput.js"></script>
<script type="text/javascript" charset="UTF-8" src="../lib/bootstrap/js/bootstrap-tagsinput-angular.js"></script>